﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using Iesi.Collections;
using Iesi.Collections.Generic;
using RealIce.Server.Data.Components;
using RealIce.Server.Data.Exceptions;
using RealIce.Server.Data.Enumerations;
using RealIce.Server.Data.RealIce.Entity;

namespace RealIce.Server.Data.RealIce.Entity 
{
    [Serializable]
	public class TablaPRUEBA1
	{
        private System.Int32 _Id;
		private System.String _Atributo2;
        private IList<TablaPRUEBA2> _FKT1T2;

        public TablaPRUEBA1() { 
        }

        public TablaPRUEBA1(System.String atributo, System.Int32 id)
        {
            this._Atributo2 = atributo;
            this._Id = id;
        }

		public virtual System.String Atributo2
		{
			get{return _Atributo2;}
			set{_Atributo2 = value;}
		}

        public virtual IList<TablaPRUEBA2> FKT1T2
		{
            get { return _FKT1T2; }
		}

		public virtual System.Int32 Id
		{
			get{return _Id;}
			set{_Id = value;}
		}
        
/*		protected bool Equals(TablaPRUEBA1 entity)
		{
			if (entity == null) return false;
			if (!base.Equals(entity)) return false;
			if (!Equals(_Id, entity._Id)) return false;
			return true;
		}

		public override bool Equals(object obj)
		{
			if (ReferenceEquals(this, obj)) return true;
			return Equals(obj as TablaPRUEBA1);
		}

		public override int GetHashCode()
		{
			int result = base.GetHashCode();
			result = 29*result + _Id.GetHashCode();
			return result;
		}                       */

	}
}
